//---------------------------------------------------------------------------

#ifndef SPR_TARIFH
#define SPR_TARIFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "cxButtons.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "Shablon_Spr.h"
#include <ActnList.hpp>
#include <DBGrids.hpp>
#include <ExtCtrls.hpp>
#include <Grids.hpp>
#include <Menus.hpp>
#include "DBCtrlsEh.hpp"
#include <DB.hpp>
#include <DBCtrls.hpp>
#include <Mask.hpp>
#include "frxClass.hpp"
#include "frxDBSet.hpp"
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
//---------------------------------------------------------------------------
class TfrSPR_TARIF : public TfrShablon_Spr
{
__published:	// IDE-managed Components
	TLabel *Label1;
	TDBEdit *dbeKod;
	TLabel *Label2;
	TDBEdit *dbeNaim;
	TLabel *Label3;
	TDBLookupComboBox *cbEdIzm;
	TDBEdit *dbeCena;
	TDBEdit *dbeDen;
	TDBEdit *dbeCena1;
	TDBLookupComboBox *cbVidGaza;
	TLabel *Label7;
	TLabel *Label6;
	TLabel *Label5;
	TLabel *Label4;
	TLabel *Label8;
	TDBEdit *dbeRasL;
	TLabel *Label9;
	TDBEdit *dbeRasZ;
	TLabel *Label10;
	TDBDateTimeEditEh *dtpDat;
	TfrxReport *frxSP_TARIF;
	TfrxDBDataset *frxDBDSP_TARIF;
	TIBCQuery *dsetSprTarif;
	TIBCDataSource *dsSprTarif;
	TAction *actESC;
	void __fastcall AddExecute(TObject *Sender);
	void __fastcall SaveExecute(TObject *Sender);
	void __fastcall dbeKodKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dbeNaimKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall cbEdIzmKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dbeCenaKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dbeDenKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dbeCena1KeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall cbVidGazaKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dbeRasLKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dbeRasZKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dtpDatKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall EditExecute(TObject *Sender);
	void __fastcall sgSpr_TableDblClick(TObject *Sender);
	void __fastcall sgSpr_TableKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall DeleteExecute(TObject *Sender);
	void __fastcall PrintExecute(TObject *Sender);
	void __fastcall actESCExecute(TObject *Sender);
private:	// User declarations
public:		// User declarations
String DATA,DAT;
String Month,Year;
	__fastcall TfrSPR_TARIF(TComponent* Owner);
	void __fastcall TfrSPR_TARIF::Obnovi();
};
//---------------------------------------------------------------------------
extern PACKAGE TfrSPR_TARIF *frSPR_TARIF;
//---------------------------------------------------------------------------
#endif
